//
//  XKRegisterView.h
//  xk100
//
//  Created by xiaokang on 2017/6/23.
//  Copyright © 2017年 xiaokang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XKRegisterViewDelegate <NSObject>
/**
 获取验证码
 
 @param phone 手机号
 */
- (void)getvcodeWithPhone:(NSString *)phone;


/**
 注册账号
 
 @param phone 手机号
 @param vcode 验证码
 @param password_new 新密码
 @param password_confirm 确认密码
 */
- (void)registerWithNickName:(NSString *)nickName phone:(NSString *)phone vcode:(NSString *)vcode password_new:(NSString *)password_new password_confirm:(NSString *)password_confirm inviter:(NSString *)inviterPhone;

@end

@interface XKRegisterView : UIView

@property (nonatomic, strong) UIButton *vcodeButton;
@property (nonatomic, copy) NSString *phoneString;
@property (nonatomic, weak) id <XKRegisterViewDelegate> delegate;

@end
